asPNG

Constructs a compatible version of an image as PNG

  1. managed!(PNGFileFormat!Color) asPNG(From from, IAllocator allocator)
    managed!(PNGFileFormat!Color)
    asPNG
    (
    From
    Color = ImageColor!From
    ImageImpl = ImageStorageHorizontal!Color
    )
    (
    From from
    ,
    IAllocator allocator = theAllocator()
    )
    if (
    isImage!From &&
    !is(From == struct)
    )
  2. managed!(PNGFileFormat!Color) asPNG(From from, IAllocator allocator)

Return Value

Type: managed!(PNGFileFormat!Color)

A compatible PNG image

Meta